// pages/order/order-mian/mian.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    ordertype:1,

    userType:"",
    userInfo:"",

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    wx.getStorage({
      key: 'userType',
      success(typeinfo) {
        that.setData({
          userType: typeinfo.data
        })
        wx.getStorage({
          key: 'userInfo',
          success(userres) {
            that.setData({
              userInfo: userres.data
            })
          },
          
        })  
      }
    })

     
  },

  evaluation:function(event){
    wx.navigateTo({
      url: '/pages/order/evaluation/evaluation',
    })
  },
  loadData:function(event){
    var that = this;
    var type = event.currentTarget.dataset.type;
    that.setData({
      ordertype:type
    })
  }
})